package JLB_Chapter_05;
// StringReplaceAll
public class code_05_17 {
    public static void main(String[] args) {
        String str = "0123456789abc\\d";
        String restr = str.replace("\\d","?");
        String restrAll = str.replaceAll("\\d","?");
        System.out.println("字符串str：" + str);
        System.out.println("使用replace替换的结果：" + restr);
        System.out.println("使用replaceAll替换的结果：" + restrAll);
    }
}
